package com.niubility.dao;



import com.niubility.entity.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentDao {
    public Department loadDepById(int Id);
    public Department loadDepByAcount(String depAcount);
    public int save(Department department);
    public int update(Department department);
    public int delDepById(int depId);
    public int lastInsertId(@Param("colId")int colId,@Param("depName")String depName);
    public int depNumAdd(@Param("depId") int depId,@Param("changeValue") int changeValue);
    public List<Department> loadAllInCol(@Param("colId") int colId, @Param("index") int index, @Param("elemCount") int elemCount);
}

